rockchip: mkimage: Allow encoding of loader code in spl images
authorHeiko Stübner <[email protected]>
Sat, 18 Feb 2017 18:46:27 +0000 (19:46 +0100)
committerSimon Glass <[email protected]>
Thu, 16 Mar 2017 22:03:44 +0000 (16:03 -0600)
commitcfbcdade763c87c7dde52020b8b98d399540ede2
tree43917a090f0f48f4d076f2483f11392cee5f3384
parentaade077e431b584980a0418c0e464f6ef31c5c20
rockchip: mkimage: Allow encoding of loader code in spl images

Rockchip SoCs allow the spl code to be rc4-encoded, not only the
image header, but only newer SoCs allow this encoding to be disabled.

The rk3188 is not part of those and requires its boot code to be
rc4-encoded with the regular key. So add the ability to do this
encoding via a setting on a per-soc basis when building spl images.

Signed-off-by: Heiko Stuebner <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Tested-by: Kever Yang <[email protected]>
tools/rkcommon.c
tools/rkcommon.h
tools/rkimage.c
tools/rksd.c
tools/rkspi.c